﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucTourTry.ascx.cs" Inherits="Indochinaodyssey.UserControl.Tour.ucTourTry" %>
<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" Width="100%"
    OnItemCommand="DataList1_ItemCommand">
    <ItemTemplate>
        <div class="link-item-container">
            <img alt="tab" class="tab" src="../../Style/Images/tab_right.png" />
            <asp:LinkButton ID="LinkButton2" runat="server" Text='<%# Eval("TenTheLoai") %>'
                CommandArgument='<%# Eval("theloaiid") %>' CommandName="cate"></asp:LinkButton><br />
        </div>
        <asp:DataList ID="DataList2" runat="server" DataSourceID="ObjectDataSource2" Width="100%"
            OnItemCommand="DataList2_ItemCommand">
            <ItemTemplate>
                &nbsp;&nbsp;&nbsp; -
                <asp:LinkButton ID="LinkButton1" runat="server" Text='<%# Eval("TieuDe") %>' CommandArgument='<%# Eval("Id") %>'
                    CommandName="tour"></asp:LinkButton>
                <br />
            </ItemTemplate>
        </asp:DataList>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetByLoai"
            TypeName="IOBusiness.clsBSTour">
            <SelectParameters>
                <asp:ControlParameter ControlID="HiddenField1" Name="loaiid" PropertyName="Value"
                    Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:HiddenField ID="HiddenField1" runat="server" Value='<%# Eval("theloaiid") %>' />
    </ItemTemplate>
</asp:DataList>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAll"
    TypeName="IOBusiness.clsBSInfomation"></asp:ObjectDataSource>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
    SelectCommand="SELECT ID AS theloaiid, TenTheLoai FROM dbo.tblTheLoai WHERE (MaDanhMuc = @madanhmuc) AND (MaQuocGia = @maquocgia)">
    <SelectParameters>
        <asp:QueryStringParameter Name="madanhmuc" QueryStringField="sub" />
        <asp:QueryStringParameter Name="maquocgia" QueryStringField="country" />
    </SelectParameters>
</asp:SqlDataSource>
